<!DOCTYPE html>
<html class="x-admin-sm"  xmlns:th="http://www.thymeleaf.org"  th:headers="utf-8">
    
    <head>
        <meta charset="UTF-8">
        <title>修改宿舍页面</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" th:href="@{/css/font.css}">
        <link rel="stylesheet" th:href="@{/css/index.css}">
        <script type="text/javascript" th:src="@{/lib/layui/layui.js}" charset="utf-8"></script>
        <script type="text/javascript" th:src="@{/js/index.js}"></script>
        <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->

    </head>
    <body>
        <div class="layui-fluid">
            <div class="layui-row">
                <form class="layui-form" th:action="@{/doma/modify}" method="post">
                  <div class="layui-form-item">
                      <label for="apart_num" class="layui-form-label">
                          <span class="x-red">*</span>公寓号
                      </label>
                      <div class="layui-input-inline">
                          <input type="text" id="apart_num" name="apart_num" required="" lay-verify="required" th:value="${dorm.getApart_num()}"
                          autocomplete="off" class="layui-input">
                      </div>
                      <div class="layui-form-mid layui-word-aux">
                          <span class="x-red"></span>
                      </div>
                  </div>
                  <div class="layui-form-item">
                      <label for="dormi_num" class="layui-form-label">
                          <span class="x-red">*</span>寝室号
                      </label>
                      <div class="layui-input-inline">
                          <input type="text" id="dormi_num" name="dormi_num" required="" lay-verify="dormi_num" th:value="${dorm.getDormi_num()}"
                          autocomplete="off" class="layui-input">
                      </div>
                      <div class="layui-form-mid layui-word-aux">
                          <span class="x-red"></span>
                      </div>
                  </div>
                  <div class="layui-form-item">
                      <label for="floor" class="layui-form-label">
                          <span class="x-red">*</span>楼层
                      </label>
                      <div class="layui-input-inline">
                          <input type="text" id="floor" name="floor" required="" lay-verify="floor" th:value="${dorm.getFloor()}"
                          autocomplete="off" class="layui-input">
                      </div>
                      <div class="layui-form-mid layui-word-aux">
                          <span class="x-red"></span>
                      </div>
                  </div>
                  
                  <div class="layui-form-item">
                      <label  class="layui-form-label">
                          <span class="x-red">*</span>寝室最大容量
                      </label>
                      <div class="layui-input-inline">
                          <input type="text" id="ax_num" name="ax_num" required="" lay-verify="ax_num" th:value="${dorm.getMax_num()}"
                          autocomplete="off" class="layui-input">
                      </div>
                      <div class="layui-form-mid layui-word-aux">
                
                      </div>
                  </div>
                  <div class="layui-form-item">
                      <label for="num" class="layui-form-label">
                          <span class="x-red">*</span>剩余床位
                      </label>
                      <div class="layui-input-inline">
                          <input type="text" id="num" name="num" required="" lay-verify="num" th:value="${dorm.getNum()}"
                          autocomplete="off" class="layui-input">
                      </div>
                  </div>
				  <div class="layui-form-item">
				      <label for="tite" class="layui-form-label">
				          <span class="x-red">*</span>寝室称号
				      </label>
				      <div class="layui-input-inline">
				          <input type="text" id="tite" name="tite" required="" lay-verify="tite" th:value="${dorm.getTite()}"
				          autocomplete="off" class="layui-input">
				      </div>
				  </div>
                  <div class="layui-form-item">
                      <p  style="color:red;" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
                      <label  class="layui-form-label">
                      </label>
                      <button  class="layui-btn" lay-filter="add" lay-submit="">
                          修改
                      </button>
                  </div>
              </form>
            </div>
        </div>
        <script>layui.use(['form', 'layer'],
            function() {
                $ = layui.jquery;
                var form = layui.form,
                layer = layui.layer;
            });</script>
        <script>var _hmt = _hmt || []; (function() {
                var hm = document.createElement("script");
                hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
                var s = document.getElementsByTagName("script")[0];
                s.parentNode.insertBefore(hm, s);
            })();</script>
    </body>

</html>
